package com.ztesoft.web.filecommon.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class FileObjServerRelArg {
    private String pk_name = "RELATIONSHIPS_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<FileObjServerRelCriteria> oredCriteria;

    public FileObjServerRelArg() {
        oredCriteria = new ArrayList<FileObjServerRelCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<FileObjServerRelCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(FileObjServerRelCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public FileObjServerRelCriteria or() {
    	FileObjServerRelCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public FileObjServerRelCriteria createCriteria() {
    	FileObjServerRelCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected FileObjServerRelCriteria createCriteriaInternal() {
    	FileObjServerRelCriteria criteria = new FileObjServerRelCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<FileObjServerRelCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<FileObjServerRelCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<FileObjServerRelCriterion> getAllCriteria() {
            return criteria;
        }

        public List<FileObjServerRelCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new FileObjServerRelCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new FileObjServerRelCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new FileObjServerRelCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new FileObjServerRelCriterion(condition, value1, value2));
        }

        public FileObjServerRelCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andRelationshipsIdIsNull() {
            addCriterion("RELATIONSHIPS_ID is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdIsNotNull() {
            addCriterion("RELATIONSHIPS_ID is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdEqualTo(Integer value) {
            addCriterion("RELATIONSHIPS_ID =", value, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdNotEqualTo(Integer value) {
            addCriterion("RELATIONSHIPS_ID <>", value, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdGreaterThan(Integer value) {
            addCriterion("RELATIONSHIPS_ID >", value, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("RELATIONSHIPS_ID >=", value, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdLessThan(Integer value) {
            addCriterion("RELATIONSHIPS_ID <", value, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdLessThanOrEqualTo(Integer value) {
            addCriterion("RELATIONSHIPS_ID <=", value, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdLike(Integer value) {
            addCriterion("RELATIONSHIPS_ID like ", value, "RELATIONSHIPS_ID", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdNotLike(Integer value) {
            addCriterion("RELATIONSHIPS_ID  not like ", value, "RELATIONSHIPS_ID", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdLeftLike(Integer value) {
            addCriterion("RELATIONSHIPS_ID like ", value, "RELATIONSHIPS_ID", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdNotLeftLike(Integer value) {
            addCriterion("RELATIONSHIPS_ID  not like ", value, "RELATIONSHIPS_ID", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdRightLike(Integer value) {
            addCriterion("RELATIONSHIPS_ID like ", value, "RELATIONSHIPS_ID", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdNotRightLike(Integer value) {
            addCriterion("RELATIONSHIPS_ID  not like ", value, "RELATIONSHIPS_ID", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdIn(List<Integer> values) {
            addCriterion("RELATIONSHIPS_ID  in ", values, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdNotIn(List<Integer> values) {
            addCriterion("RELATIONSHIPS_ID not in ", values, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdBetween(Integer value1, Integer value2) {
            addCriterion("RELATIONSHIPS_ID between ", value1, value2, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andRelationshipsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("RELATIONSHIPS_ID not between ", value1, value2, "RELATIONSHIPS_ID");
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andSrcHostIdIsNull() {
            addCriterion("SRC_HOST_ID is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdIsNotNull() {
            addCriterion("SRC_HOST_ID is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdEqualTo(Integer value) {
            addCriterion("SRC_HOST_ID =", value, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdNotEqualTo(Integer value) {
            addCriterion("SRC_HOST_ID <>", value, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdGreaterThan(Integer value) {
            addCriterion("SRC_HOST_ID >", value, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SRC_HOST_ID >=", value, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdLessThan(Integer value) {
            addCriterion("SRC_HOST_ID <", value, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdLessThanOrEqualTo(Integer value) {
            addCriterion("SRC_HOST_ID <=", value, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdLike(Integer value) {
            addCriterion("SRC_HOST_ID like ", value, "SRC_HOST_ID", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdNotLike(Integer value) {
            addCriterion("SRC_HOST_ID  not like ", value, "SRC_HOST_ID", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdLeftLike(Integer value) {
            addCriterion("SRC_HOST_ID like ", value, "SRC_HOST_ID", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdNotLeftLike(Integer value) {
            addCriterion("SRC_HOST_ID  not like ", value, "SRC_HOST_ID", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdRightLike(Integer value) {
            addCriterion("SRC_HOST_ID like ", value, "SRC_HOST_ID", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdNotRightLike(Integer value) {
            addCriterion("SRC_HOST_ID  not like ", value, "SRC_HOST_ID", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdIn(List<Integer> values) {
            addCriterion("SRC_HOST_ID  in ", values, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdNotIn(List<Integer> values) {
            addCriterion("SRC_HOST_ID not in ", values, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdBetween(Integer value1, Integer value2) {
            addCriterion("SRC_HOST_ID between ", value1, value2, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcHostIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SRC_HOST_ID not between ", value1, value2, "SRC_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andSrcIpIsNull() {
            addCriterion("SRC_IP is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpIsNotNull() {
            addCriterion("SRC_IP is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpEqualTo(String value) {
            addCriterion("SRC_IP =", value, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpNotEqualTo(String value) {
            addCriterion("SRC_IP <>", value, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpGreaterThan(String value) {
            addCriterion("SRC_IP >", value, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpGreaterThanOrEqualTo(String value) {
            addCriterion("SRC_IP >=", value, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpLessThan(String value) {
            addCriterion("SRC_IP <", value, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpLessThanOrEqualTo(String value) {
            addCriterion("SRC_IP <=", value, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpLike(String value) {
            addCriterion("SRC_IP like ", value, "SRC_IP", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpNotLike(String value) {
            addCriterion("SRC_IP  not like ", value, "SRC_IP", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpLeftLike(String value) {
            addCriterion("SRC_IP like ", value, "SRC_IP", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpNotLeftLike(String value) {
            addCriterion("SRC_IP  not like ", value, "SRC_IP", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpRightLike(String value) {
            addCriterion("SRC_IP like ", value, "SRC_IP", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpNotRightLike(String value) {
            addCriterion("SRC_IP  not like ", value, "SRC_IP", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpIn(List<String> values) {
            addCriterion("SRC_IP  in ", values, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpNotIn(List<String> values) {
            addCriterion("SRC_IP not in ", values, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpBetween(String value1, String value2) {
            addCriterion("SRC_IP between ", value1, value2, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andSrcIpNotBetween(String value1, String value2) {
            addCriterion("SRC_IP not between ", value1, value2, "SRC_IP");
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andDestHostIdIsNull() {
            addCriterion("DEST_HOST_ID is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdIsNotNull() {
            addCriterion("DEST_HOST_ID is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdEqualTo(Integer value) {
            addCriterion("DEST_HOST_ID =", value, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdNotEqualTo(Integer value) {
            addCriterion("DEST_HOST_ID <>", value, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdGreaterThan(Integer value) {
            addCriterion("DEST_HOST_ID >", value, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEST_HOST_ID >=", value, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdLessThan(Integer value) {
            addCriterion("DEST_HOST_ID <", value, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdLessThanOrEqualTo(Integer value) {
            addCriterion("DEST_HOST_ID <=", value, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdLike(Integer value) {
            addCriterion("DEST_HOST_ID like ", value, "DEST_HOST_ID", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdNotLike(Integer value) {
            addCriterion("DEST_HOST_ID  not like ", value, "DEST_HOST_ID", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdLeftLike(Integer value) {
            addCriterion("DEST_HOST_ID like ", value, "DEST_HOST_ID", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdNotLeftLike(Integer value) {
            addCriterion("DEST_HOST_ID  not like ", value, "DEST_HOST_ID", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdRightLike(Integer value) {
            addCriterion("DEST_HOST_ID like ", value, "DEST_HOST_ID", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdNotRightLike(Integer value) {
            addCriterion("DEST_HOST_ID  not like ", value, "DEST_HOST_ID", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdIn(List<Integer> values) {
            addCriterion("DEST_HOST_ID  in ", values, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdNotIn(List<Integer> values) {
            addCriterion("DEST_HOST_ID not in ", values, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdBetween(Integer value1, Integer value2) {
            addCriterion("DEST_HOST_ID between ", value1, value2, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestHostIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DEST_HOST_ID not between ", value1, value2, "DEST_HOST_ID");
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andDestIpIsNull() {
            addCriterion("DEST_IP is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpIsNotNull() {
            addCriterion("DEST_IP is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpEqualTo(String value) {
            addCriterion("DEST_IP =", value, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpNotEqualTo(String value) {
            addCriterion("DEST_IP <>", value, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpGreaterThan(String value) {
            addCriterion("DEST_IP >", value, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpGreaterThanOrEqualTo(String value) {
            addCriterion("DEST_IP >=", value, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpLessThan(String value) {
            addCriterion("DEST_IP <", value, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpLessThanOrEqualTo(String value) {
            addCriterion("DEST_IP <=", value, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpLike(String value) {
            addCriterion("DEST_IP like ", value, "DEST_IP", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpNotLike(String value) {
            addCriterion("DEST_IP  not like ", value, "DEST_IP", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpLeftLike(String value) {
            addCriterion("DEST_IP like ", value, "DEST_IP", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpNotLeftLike(String value) {
            addCriterion("DEST_IP  not like ", value, "DEST_IP", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpRightLike(String value) {
            addCriterion("DEST_IP like ", value, "DEST_IP", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpNotRightLike(String value) {
            addCriterion("DEST_IP  not like ", value, "DEST_IP", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpIn(List<String> values) {
            addCriterion("DEST_IP  in ", values, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpNotIn(List<String> values) {
            addCriterion("DEST_IP not in ", values, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpBetween(String value1, String value2) {
            addCriterion("DEST_IP between ", value1, value2, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andDestIpNotBetween(String value1, String value2) {
            addCriterion("DEST_IP not between ", value1, value2, "DEST_IP");
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andObjIdIsNull() {
            addCriterion("OBJ_ID is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdIsNotNull() {
            addCriterion("OBJ_ID is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdEqualTo(Integer value) {
            addCriterion("OBJ_ID =", value, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdNotEqualTo(Integer value) {
            addCriterion("OBJ_ID <>", value, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdGreaterThan(Integer value) {
            addCriterion("OBJ_ID >", value, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("OBJ_ID >=", value, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdLessThan(Integer value) {
            addCriterion("OBJ_ID <", value, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdLessThanOrEqualTo(Integer value) {
            addCriterion("OBJ_ID <=", value, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdLike(Integer value) {
            addCriterion("OBJ_ID like ", value, "OBJ_ID", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdNotLike(Integer value) {
            addCriterion("OBJ_ID  not like ", value, "OBJ_ID", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdLeftLike(Integer value) {
            addCriterion("OBJ_ID like ", value, "OBJ_ID", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdNotLeftLike(Integer value) {
            addCriterion("OBJ_ID  not like ", value, "OBJ_ID", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdRightLike(Integer value) {
            addCriterion("OBJ_ID like ", value, "OBJ_ID", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdNotRightLike(Integer value) {
            addCriterion("OBJ_ID  not like ", value, "OBJ_ID", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdIn(List<Integer> values) {
            addCriterion("OBJ_ID  in ", values, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdNotIn(List<Integer> values) {
            addCriterion("OBJ_ID not in ", values, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdBetween(Integer value1, Integer value2) {
            addCriterion("OBJ_ID between ", value1, value2, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andObjIdNotBetween(Integer value1, Integer value2) {
            addCriterion("OBJ_ID not between ", value1, value2, "OBJ_ID");
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andHostTypeIsNull() {
            addCriterion("HOST_TYPE is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeIsNotNull() {
            addCriterion("HOST_TYPE is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeEqualTo(String value) {
            addCriterion("HOST_TYPE =", value, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeNotEqualTo(String value) {
            addCriterion("HOST_TYPE <>", value, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeGreaterThan(String value) {
            addCriterion("HOST_TYPE >", value, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeGreaterThanOrEqualTo(String value) {
            addCriterion("HOST_TYPE >=", value, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeLessThan(String value) {
            addCriterion("HOST_TYPE <", value, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeLessThanOrEqualTo(String value) {
            addCriterion("HOST_TYPE <=", value, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeLike(String value) {
            addCriterion("HOST_TYPE like ", value, "HOST_TYPE", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeNotLike(String value) {
            addCriterion("HOST_TYPE  not like ", value, "HOST_TYPE", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeLeftLike(String value) {
            addCriterion("HOST_TYPE like ", value, "HOST_TYPE", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeNotLeftLike(String value) {
            addCriterion("HOST_TYPE  not like ", value, "HOST_TYPE", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeRightLike(String value) {
            addCriterion("HOST_TYPE like ", value, "HOST_TYPE", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeNotRightLike(String value) {
            addCriterion("HOST_TYPE  not like ", value, "HOST_TYPE", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeIn(List<String> values) {
            addCriterion("HOST_TYPE  in ", values, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeNotIn(List<String> values) {
            addCriterion("HOST_TYPE not in ", values, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeBetween(String value1, String value2) {
            addCriterion("HOST_TYPE between ", value1, value2, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andHostTypeNotBetween(String value1, String value2) {
            addCriterion("HOST_TYPE not between ", value1, value2, "HOST_TYPE");
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andStateDateIsNull() {
            addCriterion("STATE_DATE is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateIsNotNull() {
            addCriterion("STATE_DATE is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateEqualTo(String value) {
            addCriterion("STATE_DATE =", value, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateNotEqualTo(String value) {
            addCriterion("STATE_DATE <>", value, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateGreaterThan(String value) {
            addCriterion("STATE_DATE >", value, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE_DATE >=", value, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateLessThan(String value) {
            addCriterion("STATE_DATE <", value, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateLessThanOrEqualTo(String value) {
            addCriterion("STATE_DATE <=", value, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateNotLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateLeftLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateNotLeftLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateRightLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateNotRightLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateIn(List<String> values) {
            addCriterion("STATE_DATE  in ", values, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateNotIn(List<String> values) {
            addCriterion("STATE_DATE not in ", values, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateBetween(String value1, String value2) {
            addCriterion("STATE_DATE between ", value1, value2, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andStateDateNotBetween(String value1, String value2) {
            addCriterion("STATE_DATE not between ", value1, value2, "STATE_DATE");
            return (FileObjServerRelCriteria) this;
        }
        public FileObjServerRelCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateEqualTo(String value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateNotEqualTo(String value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateGreaterThan(String value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateLessThan(String value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateLessThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateNotLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateLeftLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateNotLeftLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateRightLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateNotRightLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateIn(List<String> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateNotIn(List<String> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateBetween(String value1, String value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

        public FileObjServerRelCriteria andCreateDateNotBetween(String value1, String value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (FileObjServerRelCriteria) this;
        }

    }

    public static class FileObjServerRelCriteria extends GeneratedCriteria {

        protected FileObjServerRelCriteria() {
            super();
        }
    }

    public static class FileObjServerRelCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected FileObjServerRelCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected FileObjServerRelCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected FileObjServerRelCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected FileObjServerRelCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected FileObjServerRelCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected FileObjServerRelCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}